package com.houtai.bean;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

public class TsJzDict {
    /**
     * 主键
     */
    private Integer dict_id;
    /**
     * 类别
     */
    @NotNull(message = "类别能为空")
    @Length(max = 32, message = "类别最多32个字符")
    private String code_type;
    /**
     * 名称
     */
    @NotNull(message = "值不能为空")
    @Length(max = 32, message = "值最多32个字符")
    private String code_name;

    /**
     * 父id
     */
    @NotNull(message = "父id不能为空")
    private int parent_id;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private int dict_sort;

    /**
     * 0：可用
     */
    @NotNull(message = "状态不能为空")
    private int status;
    /**
     * 名称
     */
    private String code_value;

    public Integer getDict_id() {
        return dict_id;
    }

    public void setDict_id(Integer dict_id) {
        this.dict_id = dict_id;
    }

    public String getCode_name() {
        return code_name;
    }

    public void setCode_name(String code_name) {
        this.code_name = code_name;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public int getDict_sort() {
        return dict_sort;
    }

    public void setDict_sort(int dict_sort) {
        this.dict_sort = dict_sort;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCode_type() {
        return code_type;
    }

    public void setCode_type(String code_type) {
        this.code_type = code_type;
    }

    public String getCode_value() {
        return code_value;
    }

    public void setCode_value(String code_value) {
        this.code_value = code_value;
    }

}